﻿#pragma once

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include <string>
#include <vector>
#include <map>

#include "npapi/ext/npext.h"

extern NPNetscapeFuncs*				gpnpf;

#if defined(XP_UNIX)
#define TR(x)       (x)
#define A2U(x)		(x)
#define _stdcall
#else
#include <atlbase.h>
#include <atlconv.h>

#define TR(x)		(char*)CW2A(L##x, CP_UTF8)
#define A2U(x)		(char*)CW2A((wchar_t *)CA2W((x)), CP_UTF8)
#endif

#define DbgTrace(x)             printf x

namespace mydn
{
char*           pathCombine(char* pNewPath, size_t size, const char* pDir, const char* file, const char split = '/');
bool            checkPathExtensionIsHtml(const char* pPath);
bool            getHtmlData(std::string& strHtml, const char* pHtmlFile);
}

